package com.eascs.web.o2o.web.service.impl;

import java.util.List;

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import com.eascs.web.o2o.web.dao.BaseDao;
import com.eascs.web.o2o.web.dao.BiodsDao;

@Service
public class BaseService {

	//protected final Logger logger = LoggerFactory.getLogger(getClass());
	@Inject
	BaseDao baseDao;
	
	@Inject
	BiodsDao biodsDao;

	public List<Object[]> findObjectsList(String sql){
		return baseDao.findObjectsList(sql);
	}
	
	public <T> void excuteProReport (String sql){
		baseDao.excuteProReport(sql);
	}
	
	public List<Object[]> findObjectsList(String sql,Object... params){
		return baseDao.findObjectsList(sql,params);
	}
	
	public void isnertNewBusiness(String isnertSql,Object... params){
		baseDao.isnertNewBusiness(isnertSql,params);
	}
	
	public void deleteNewBusiness(String deleteSql,String param){
		baseDao.deleteNewBusiness(deleteSql,param);
	}
	
	public List<Object[]> findOracleObjectsList(String sql,Object... params){
		return baseDao.findOracleObjectsList(sql,params);
	}
	
	
	
	
	
	
    // 2017-12-15 wangchunlin
	public List<Object[]> findObjectsListfromods(String sql,Object... params){
		return biodsDao.findObjectsList(sql,params);
	}
	
	public void isnertNewBusinessfromods(String isnertSql,Object... params){
		biodsDao.isnertNewBusiness(isnertSql,params);
	}
	
	
}
